package com.kgc.cgapi.pojo;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

public class CGDDInfo {
    private int id;
    private int pid;
    private String pcode;
    private String name;
    private String type;
    private String uname;

    private String major_code;
    private int num;
    private int buy_num;
    private BigDecimal price;
    private String tax;
    private BigDecimal tax_amount;
    private BigDecimal tax_price;

    private String gybj_code;

    private String create_date;
    private int create_id;
    private String create_name;

    private String modi_date;
    private int modi_id;
    private String modi_name;

    private static final SimpleDateFormat FORMAT = new SimpleDateFormat("yyyy-MM-dd");

    @Override
    public String toString() {
        return "CGDDInfo{" +
                "id=" + id +
                ", pid=" + pid +
                ", pcode='" + pcode + '\'' +
                ", pname='" + name + '\'' +
                ", type='" + type + '\'' +
                ", uname='" + uname + '\'' +
                ", major_code='" + major_code + '\'' +
                ", num=" + num +
                ", buy_num=" + buy_num +
                ", price=" + price +
                ", tax=" + tax +
                ", tax_amount=" + tax_amount +
                ", tax_price=" + tax_price +
                ", source_code='" + gybj_code + '\'' +
                ", create_date='" + create_date + '\'' +
                ", create_id=" + create_id +
                ", create_name='" + create_name + '\'' +
                ", modi_date='" + modi_date + '\'' +
                ", modi_id=" + modi_id +
                ", modi_name='" + modi_name + '\'' +
                '}';
    }

    public String getTax() {
        return tax;
    }

    public void setTax(String tax) {
        this.tax = tax;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getMajor_code() {
        return major_code;
    }

    public void setMajor_code(String major_code) {
        this.major_code = major_code;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getBuy_num() {
        return buy_num;
    }

    public void setBuy_num(int buy_num) {
        this.buy_num = buy_num;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTax_amount() {
        return tax_amount;
    }

    public void setTax_amount(BigDecimal tax_amount) {
        this.tax_amount = tax_amount;
    }

    public BigDecimal getTax_price() {
        return tax_price;
    }

    public void setTax_price(BigDecimal tax_price) {
        this.tax_price = tax_price;
    }

    public String getGybj_code() {
        return gybj_code;
    }

    public void setGybj_code(String gybj_code) {
        this.gybj_code = gybj_code;
    }

    public String getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Date create_date) {
        this.create_date = FORMAT.format(create_date);
    }

    public int getCreate_id() {
        return create_id;
    }

    public void setCreate_id(int create_id) {
        this.create_id = create_id;
    }

    public String getCreate_name() {
        return create_name;
    }

    public void setCreate_name(String create_name) {
        this.create_name = create_name;
    }

    public String getModi_date() {
        return modi_date;
    }

    public void setModi_date(Date modi_date) {
        this.modi_date = FORMAT.format(modi_date);
    }

    public int getModi_id() {
        return modi_id;
    }

    public void setModi_id(int modi_id) {
        this.modi_id = modi_id;
    }

    public String getModi_name() {
        return modi_name;
    }

    public void setModi_name(String modi_name) {
        this.modi_name = modi_name;
    }
}
